/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dca.sistemascontrole.malhadecontrole;

/**
 *
 * @author Rafael
 */
public class MalhaFechada extends MalhaDeControle {

    private double setpoint;

    public MalhaFechada(double setpoint) {
        this.setpoint = setpoint;
    }

    @Override
    protected double getNextValue(long t, double nivelTanqueSuperior, double nivelTanqueInfeior) {
        return setpoint - nivelTanqueSuperior;
    }

    public double getSetpoint() {
        return setpoint;
    }

    public void setSetpoint(double setpoint) {
        this.setpoint = setpoint;
    }
}
